﻿using System.Windows;

using MyWpfControlsTestBench.Demos;
using MyWpfControlsTestBench.DemoWindows;

namespace MyWpfControlsTestBench
{
    public partial class MainWindow 
        : Window
    {
        public MainWindow()
        {
            InitializeComponent();
        }

        private void treeViewDemoButton_Click(object sender, RoutedEventArgs e)
        {
            TreeViewDemoWindow window = new TreeViewDemoWindow();
            window.Owner = this;
            window.Show();
        }

        private void customTreeViewDemoButton_Click(object sender, RoutedEventArgs e)
        {
            TreeViewControlDemoWindow window = new TreeViewControlDemoWindow();
            window.Owner = this;
            window.Show();
        }

        private void objectWithMultipleChildrenTypesButton_Click(object sender, RoutedEventArgs e)
        {
            ObjectWithMultipleChildrenTypes window = new ObjectWithMultipleChildrenTypes();
            window.Owner = this;
            window.Show();
        }

        private void objectWithMultipleChildrenTypesLoadOnDemandButton_Click(object sender, RoutedEventArgs e)
        {
            ObjectWithMultipleChildrenLoadOnDemandTypes window = new ObjectWithMultipleChildrenLoadOnDemandTypes();
            window.Owner = this;
            window.Show();
        }
    }
}
